package com.lzxzjy.mapper;
import com.lzxzjy.pojo.BorrowInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BorrowInfoMapper {
    List<BorrowInfo> selectBorrowInfoByPageAndBookTerms(@Param("borrowInfo") BorrowInfo borrowInfo, @Param("borrowInfoBegin") int borrowInfoBegin, @Param("borrowINfoSize") int borrowInfoSize);

    Integer insertBookByBookIdAndReaderId(@Param("readerId") int readerId, @Param("bookId") int bookId);

    Integer selectBorrowInfoTotalCountByTerms(BorrowInfo borrowInfo);

    Integer deleteBorrowInfoByBookIds(@Param("bookIds") int[] bookIds);

    Integer deleteBorrowInfoByBookId(int bookId);
}
